package top.songxs.gmall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import top.songxs.gmall.common.config.RedissonConfiguration;
import top.songxs.gmall.common.anno.EnableFileUpload;
import top.songxs.gmall.common.anno.EnableGlobalExceptionHandler;
import top.songxs.gmall.common.anno.EnableSwaggerConfiguration;

@SpringBootApplication
@MapperScan(value = "top.songxs.gmall.product.mapper")
@EnableGlobalExceptionHandler
@EnableFileUpload
@EnableSwaggerConfiguration
@EnableTransactionManagement
@EnableScheduling
@EnableFeignClients(basePackages = "top.songxs.gmall.feign.search")
@Import(RedissonConfiguration.class)
public class ProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class, args);
    }
}
